package com.dream.service.user.web.util;

import com.dream.common.model.bean.SerVersionBean;
import com.dream.service.user.web.model.FieldSchema;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by kangd on 2016/8/19.
 */
public class UserWebUtil {
    public static SerVersionBean buildSerVersionBean(HttpServletRequest req) throws Exception {
        String version = req.getParameter(FieldSchema.VERSION);
        String source = req.getParameter(FieldSchema.SOURCE);
        String ver = req.getParameter(FieldSchema.VER);
        return new SerVersionBean(source,ver,version);
    }
}
